Crate array_iter_tools[−][src]
Expand description
Modify simple arrays
use array_iter_tools::{ArrayIterator, IntoArrayIterator}; let a = [1, 2, 3, 4]; let b = [5, 6, 7, 8]; let c = a.into_array_iter().zip(b).map(|(a, b)| a + b).collect(); assert_eq!(c, [6, 8, 10, 12]);
Modules
array | ArrayIterator implementations on [T; N] |
map | ArrayIterator implmentations on |
mut_ref | ArrayIterator implementations on &mut [T; N] |
reference | ArrayIterator implementations on &[T; N] |
zip | ArrayIterator implmentations on |
Traits
ArrayIterator | Similar to |
IntoArrayIterator | Similar to |